import { axios } from '@/utils/request'

export function shopgoodscategoryfetchList(query) {//门店类目
  return axios({
    url: '/yjsh/shopgoodscategory/page',
    method: 'get',
    params: query
  })
}

export function platformgoodscategorypage(query) { //平台类目
  return axios({
    url: '/yjsh/platformgoodscategory/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return axios({
    url: '/yjsh/shopgoodscategory',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return axios({
    url: '/yjsh/shopgoodscategory/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return axios({
    url: '/yjsh/shopgoodscategory/' + id,
    method: 'delete'
  }) 
}

export function putObj(obj) {
  return axios({
    url: '/yjsh/shopgoodscategory',
    method: 'put',
    data: obj
  })
}

export function shopgoodscategorytree(obj) {  //商品类目树
  return axios({
    url: '/yjsh/shopgoodscategory/tree',
    method: 'post',
    data: obj
  })
}

